import request from '/@/utils/request';


//获取分页列表
export function getList(params: object) {
	return request({
		url: '/Tattoo/index',
		method: 'post',
		data: params,
	});
}

//获取全部菜单列表
export function getListAll(params: any) {
	return request({
		url: '/user/getlists',
		method: 'post',
		data: params,
	});
}

// 编辑分类
export function edit(params:Object) {
	return request({
		url:'/Tattoo/update',
		method:'post',
		data:params
	})
}






   
//保存
export function save(params: object) {
	return request({
		url: '/Tattoo/save',
		method: 'post',
		data: params,
	});
}

//删除
export function del(id: String) {
	return request({
		url: '/Tattoo/del',
		method: 'post',
		data: { id },
	});
}
  
//改变字段值
export function change(id:any, field:any, value:any) {
	const data = {
		val: id,
		field: field,
		value: value
	}
	return request({
		url: '/admin/user/change',
		method: 'post',
		data
	})
}
  